package com.yuqiao.read.design.factory2;

import com.yuqiao.read.design.factory.SimplePizzaFactory;

public abstract  class PizzaStore {


    public Pizza orderPizza(String type){
        Pizza pizza = createPizza(type);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;
    }

    abstract Pizza createPizza(String type);
}
